using namespace std;
#include <iostream>
#include <istream>
#include <fstream>

int main()
{
  cout << "Num: " << 0 << " Ascii: " << int('0') << endl;

  ifstream streamy;
  int numbars[1000], check, largest=0;
  streamy.open("examplenums.txt", ios::in);
  for(int i = 0; i < 1000; i++)
    {
      numbars[i] = streamy.get() - '0';
    }
  
  int one=numbars[0],two=numbars[1],three=numbars[2],
    four=numbars[3],five=numbars[4], leader=4;
  
  while(leader<=1000)
    {
      check=(one*two*three*four*five);
      if(check > largest)
	largest=check;
      
      leader++;
      five = numbars[leader];
      four = numbars[leader-1];
      three = numbars[leader-2];
      two = numbars[leader-3];
      one = numbars[leader-4];
    }

  cout<<"The largest is : " << largest << endl;
  return 0;
}
